const C = {};

C.$ = (selector) => {
  return document.querySelector(selector);
};

C.getStyle = (el, attr) => {
  return el.currentStyle
    ? el.currentStyle[attr]
    : window.getComputedStyle(el)[attr];
};
